import Vue from 'vue'
import Router from 'vue-router'
import index from './views/cardlist.vue'
import store from './store'
Vue.use(Router)
// const zdjh=resolve=>require(['./views/zdjh.vue'],resolve);
const routes = new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'index',
    //   meta: {
    //     keepAlive: false,// 不需要缓存
    //     title:"收款宝"
    //   },
    //   component: () => import('@/views/Expect.vue')
      
    // },
    // {
    //   path: '/',
    //   name: 'index',
    //   meta: {
    //     keepAlive: true,// 不需要缓存
    //     title:"收款宝"
    //   },
    //   component: index
      
    // },
    {
      path: '/',
      name: 'dzx',
      meta: {
        keepAlive: false,// 不需要缓存
        title:"账单规划服务"
      },
      component: () => import('@/views/selPlan.vue')
    },
    {
      path: '/dzx',
      name: 'dzx',
      meta: {
        keepAlive: false,// 不需要缓存
        title:"账单规划服务"
      },
      component: () => import('@/components/dzx.vue')
    },
    {
      path: '/planList',
      name: 'planList',
      meta: {
        keepAlive: false,// 不需要缓存
        title:"账单规划服务"
      },
      component: () => import('@/views/planList.vue')
    },
    {
      path: '/homeplanList',
      name: 'homeplanList',
      meta: {
        keepAlive: false,// 不需要缓存
        title:"账单规划服务"
      },
      component: () => import('@/views/homeplanList.vue')
    },
    {
      path: '/modifyCard',
      name: 'modifyCard',
      meta: {
        keepAlive: false,// 不需要缓存
        title:"修改卡信息"
      },
      component: () => import('@/views/modifyCard.vue')
      
    },
    {
      path: '/jhDetail',
      name: 'jhDetail',
      meta: {
        keepAlive: false,// 不需要缓存
        title:"计划详情"
      },
      component: () => import('@/views/jhDetail.vue')
    },
    {
      path: '/jhxq',
      name: 'jhxq',
      meta: {
        keepAlive: false // 不需要缓存
      },
      component: () => import('./views/jhxq.vue')
    },
    {
      path: '/searchjhxq',  //全部
      name: 'searchjhxq',
      component: () => import('./views/searchjhxq.vue')
    },
    {
      path: '/jhyl',
      name: 'jhyl',
      meta: {
        keepAlive: false, // 不需要缓存
        title:store.state.ylPlanTitle
      },
      component: () => import(/*计划预览*/ './views/jhyl.vue')
    },
    {
      path: '/ktxyzf',
      name: 'ktxyzf',
      meta: {
        keepAlive: false, // 不需要缓存
        title:"开通协议"
      },
      component: () => import(/*开通协议*/ './views/ktxyzf.vue')
    },
    {
      path: '/ktxyzf2',
      name: 'ktxyzf2',
      meta: {
        keepAlive: false, // 不需要缓存
        title:"开通协议"
      },
      component: () => import(/*开通协议*/ './views/ktxyzf2.vue')
    },
    {
      path: '/suok',
      name: 'suok',
      meta: {
        keepAlive: false // 不需要缓存
      },
      component: () => import('./views/suok.vue')
    },
    {
      path: '/zyny',
      name: 'zyny',
      meta: {
        keepAlive: false ,// 不需要缓存
        title:"专用(农业)"
      },
      component: () => import('./views/ZYNY/zdjh.vue')
    },
    {
      path: '/zdjhBGD',
      name: 'zdjhBGD',
      meta: {
        keepAlive: false ,// 不需要缓存
        title:"制定计划(大额两还)"
      },
      component: () => import('./views/bigDoubleAmount/zdjh.vue')
    },
    {
      path: '/zdjh',
      name: 'zdjh',
      meta: {
        keepAlive: false ,// 不需要缓存
        title:"制定计划(大额)"
      },
      component: () => import('./views/zdjh.vue')
    },
    {
      path: '/zdjhSG', //小额
      name: 'zdjhSG',
      meta: {
        keepAlive: false ,// 不需要缓存
        title:"制定计划(小额)"
      },
      component: () => import('./views/smallAmount/zdjh.vue')
    },
   
  ],
  // mode: 'history'
})
export default routes


